<?php
function classLoader($class)
{
    $file = FCPATH . $class . '.php';

    if (file_exists($file)) {
        require_once $file;
    }else{
    	errorCode(544,$class);
    }
}

spl_autoload_register('classLoader');